package com.kehutong.work.order.manage.entity;

import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;
import com.kehutong.work.order.manage.enums.AppraisalEnum;

@Table(value="t_work_order_manage_appraisal", comment="工单评价", multi=true, idType = IDType.TIMESTAMP)
public class WorkOrderManageAppraisal extends Entity {

    private static final long serialVersionUID = -2796962217074142912L;

    protected WorkOrderManageAppraisal(String id) {
        super(id);
    }

    @Column(comment = "评分：1满意，2一般，3不满意")
    private Integer score;

    @Column(comment = "评价")
    private AppraisalEnum appraisal;

    @Column(comment = "评论内容", length = 256)
    private String comment;

    @Column(comment = "工单ID")
    private String workOrderId;

    @Column(comment = "是否对用户展示")
    private boolean userShow;

    @Column(comment = "用户ID")
    private String userNo;

    @Column(comment = "用户ID")
    private String userName;

    @Column(comment = "是否用户创建")
    private boolean userCreate;

    @Column(comment = "处理人岗位名称", length = 255)
    private String handlePositionTitle;
    @Column(comment = "创建人头像", length = 255)
    private String avatar;

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public AppraisalEnum getAppraisal() {
        return appraisal;
    }

    public void setAppraisal(AppraisalEnum appraisal) {
        this.appraisal = appraisal;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public String getWorkOrderId() {
        return workOrderId;
    }

    public void setWorkOrderId(String workOrderId) {
        this.workOrderId = workOrderId;
    }

    public boolean isUserShow() {
        return userShow;
    }

    public void setUserShow(boolean userShow) {
        this.userShow = userShow;
    }

    public String getUserNo() {
        return userNo;
    }

    public void setUserNo(String userNo) {
        this.userNo = userNo;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public boolean isUserCreate() {
        return userCreate;
    }

    public void setUserCreate(boolean userCreate) {
        this.userCreate = userCreate;
    }

    public String getHandlePositionTitle() {
        return handlePositionTitle;
    }

    public void setHandlePositionTitle(String handlePositionTitle) {
        this.handlePositionTitle = handlePositionTitle;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }
}
